#include "junix.h"
using namespace std;

struct B
{
    virtual	void f()
	{
		cout<<"f"<<endl;
	}

};

struct D:B
{
	using B::f;
	void f(int i)
	{
		cout<<"D::f(int i)"<<endl;
	}

};

int main(int argc, char **argv)
{
	B* pb =new D;
	pb->f();

	D dd;
	dd.f(9);
	//dd.f();//error

}
